package com.pxst.internalReports.controller;

import com.pxst.fi.service.SysLogLastPageService;
import com.pxst.internalReports.resp.LogLastPageResp;
import com.pxst.resp.ApiResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.constraints.NotBlank;

/**
 * @author Chrissy
 * @description 交易画面记录相关接口
 * @since 2023-11-13 10:13:23
 */
@Api(tags = "交易画面记录相关接口")
@RestController
@RequestMapping("/internal/logLastPage")
@Validated
public class LogLastPageController {
    @Resource
    private SysLogLastPageService sysLogLastPageService;

    @ApiOperation(value = "交易画面记录搜索接口", response = LogLastPageResp.class)
    @GetMapping("/search")
    public ApiResp searchLogLastPage(@RequestParam(value = "commandId") @NotBlank(message = "commandId不能为空") String commandId) {
        return sysLogLastPageService.searchLogLastPage(commandId);
    }
}
